﻿using System;
using System.ComponentModel.DataAnnotations;

namespace W2R.Core.Models.Entities
{
    /// <summary>
    /// Represents a Tag on this system
    /// </summary>
    public class Tag : BaseEntity<Guid>
    {
        #region Constructor

        public Tag()
        {
        }

        public Tag(string name)
            : base()
        {
            this.Name = name;
        }

        #endregion

        #region Properties

        /// <summary>
        /// Name of this tag
        /// </summary>
        [Required(), StringLength(50)] //TODO : Add Internationalization and resources here.
        public string Name { get; set; }

        #endregion
    }
}
